@extends('web.layouts.app')

@section('styles')
    <link rel="stylesheet" type="text/css" href="{{ asset('resources/web/css/index.css') }}">
    <link rel="stylesheet" type="text/css" href="{{ asset('resources/web/css/ucenter.css')}}">
@endsection

@section('content')
<div class="uc-wrap swrap mt20">
	<div class="uc-side L">
		<div class="uc-nav">
			<ul>
                    @include('web.user_center.menu')
			</ul>
		</div>
	</div>
	<div class="uc-main uc-mainbg R">
		<!--借款管理查询表单-->
		<div class="user-time-search">
			<form>
				<span>起止日期</span>
				<input type="text" class="date-txt Wdate" onclick="WdatePicker();"> -
				<input type="text" class="date-txt Wdate" onclick="WdatePicker();">
				<input type="submit" class="btn" value="搜索">
			</form>
		</div>
		<!--融资列表-->
		<div class="user-item-list">
			<ul class="data-list financing-list">
				<li class="th">
					<div class="col-sqh">申请号</div>
					<div class="col-sqrq">申请日期</div>
					<div class="col-clrq">成立日期</div>
					<div class="col-sqje">申请金额(元)</div>
					<div class="col-sdje">实到金额(元)</div>
					<div class="col-zt">状态</div>
					<div class="col-ht">合同</div>
					<div class="col-cz">操作</div>
				</li>
				<li>
					<div class="col-sqh apply">
						<em>企业经营贷20万<br/>
						（Y20160006）</em>
						20160105174718442789
					</div>
					<div class="col-sqrq">2015-12-24</div>
					<div class="col-clrq">2015-12-24</div>
					<div class="col-sqje">200,000.00</div>
					<div class="col-sdje">71,287.00</div>
					<div class="col-zt">筹集中-待成立</div>
					<div class="col-ht">暂无</div>
					<div class="col-cz"><a class="orange" href="#">详情</a></div>
				</li>
				@forelse($list as $item)
				<li>
					<div class="col-sqh apply">
						<em>{{$item->projects_name}}<br/></em>
						{{$item->sn}}
					</div>
					<div class="col-sqrq">{{$item->created_at}}</div>
					<div class="col-clrq">2015-12-24</div>
					<div class="col-sqje">200,000.00</div>
					<div class="col-sdje">71,287.00</div>
					<div class="col-zt">已成立</div>
					<div class="col-ht"><a href="#">下载</a></div>
					<div class="col-cz"><a href="#">还款</a></div>
				</li>
				@empty
				<li>无记录</li>
				@endelse
			</ul>
			{{$links}}
		</div>

	</div>
</div>
@endsection

@section('scripts')
    <script src="{{ asset('resources/web/js/index.js') }}"></script>
	<script type="text/javascript" src="{{asset('resources/web/plugins/datePicker/WdatePicker.js')}}"></script>
@endsection	